package com.yf.ma;

import java.io.Serializable;

public class MethodInnerStrucTest extends Object implements Comparable<String>, Serializable {
    // field
    public int num = 10;
    private static String str = "测试方法的内部结构";
    // constructor
    // methods
    public void m1() {
        int count = 20;
        System.out.println("count = " + count);
    }

    public static int m2(int a) {
        int r = 0;
        try {
            int v = 30;
            r = v/a;
        } catch (Exception e) {
            e.printStackTrace();
        }

        return r;
    }

    @Override
    public int compareTo(String o) {
        return 0;
    }
}
